package com.example.demo.controller;


import com.example.demo.dto.ResultJson;
import com.example.demo.entity.Chukusunhuai;
import com.example.demo.mapper.Chukusunhuai_Mapper;
import com.example.demo.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Chukusunhuai")
public class Chukusunhuai_Controller extends BasicController<Chukusunhuai> {
	@Autowired
	Chukusunhuai_Mapper mapper;

	@Override
	public ResultJson insert(Chukusunhuai c) {
		c.setTime(DateUtils.getNowTime());
		return super.insert(c);
	}

}
